home *** CD-ROM | disk | FTP | other *** search
/ Gold Medal Software 5 / Gold Medal Software - Volume 5 (Gold Medal) (1995).iso / windows / win31 / cenviw.arj / OPENCMM.CMM < prev    next >
Text File  |  1994-03-08  |  496b  |  16 lines

  1. // OpenCmm.cmm - Example Cmm source file that uses the simple
  2. // ver.1         PickFile.lib interface into the GetOpenFilename()
  3. //               function in Windows' Common dialog DLL
  4. //               (COMMDLG.DLL).
  5. //
  6. // This program lets user selecte a source file (default to .cmm)
  7. // and then start notepad with that file.
  8.  
  9. #include <PickFile.lib>
  10.  
  11. FileName = GetOpenFileName("*.cmm","Select a file to edit.");
  12. if ( FileName ) {
  13.    spawn(P_NOWAIT,"NotePad.exe",FileName);
  14. }
  15.  
  16.